import request from '@/util/request.js'

/**
 * @description 乡级活动列表
 * @param data
 * @returns {Promise}
 */
export function getActivityListApi(data) {
	return request({
		url: '/api/activity/selectActivityList',
		method: 'GET',
		data
	})
}
/**
 * @description 乡级活动tab列表
 * @param data
 * @returns {Promise}
 */
export function getTableListApi(data) {
	return request({
		url: '/api/activity/selectTypeList',
		method: 'GET',
		data
	})
}
/**
 * @description 乡级活动详情
 * @param data
 * @returns {Promise}
 */
export function getActivityByIdApi(data) {
	return request({
		url: '/api/activity/selectContentById',
		method: 'GET',
		data
	})
}
/**
 * @description 乡级活动报名
 * @param data
 * @returns {Promise}
 */
export function applicationApi(data) {
	return request({
		url: '/api/activity/application',
		method: 'GET',
		data
	})
}
/**
 * @description 图片提交
 * @param data
 * @returns {Promise}
 */
export function submitImgApi(data) {
	return request({
		url: '/api/activity/upload',
		method: 'GET',
		data
	})
}
/**
 * @description 我的报名
 * @param data
 * @returns {Promise}
 */
export function getMyApplicationList(data) {
	return request({
		url: '/api/my/Application',
		method: 'GET',
		data
	})
}
/**
 * @description 图片查询
 * @param data
 * @returns {Promise}
 */
export function getImgListApi(data) {
	return request({
		url: '/api/activity/selectFiles',
		method: 'GET',
		data
	})
}